package net.googlecode.garzha.task3;

import java.math.BigDecimal;

/**
 * Created by IntelliJ IDEA.
 * User: Valera
 * Date: 30.03.11
 * Time: 13:24
 */
public class Person {
    /**
     * Name and surname,age,rate
     */
    private String firstName;
    private String lastName;
    private int age;
    private BigDecimal rate;
    /**
     * Defines hourly salary is calculated or not.
     */
    protected boolean perHour;
    /**
     * Defines bonus
     */
    private boolean bonus;
    /**
     * Value bonus
     */
    private BigDecimal bonusAmt;

    /**
     * Constructor for class.
     *
     * @param firstName Firstname of the Person.
     * @param lastName  Lastname of the Person.
     * @param age       Age of the Person.
     * @param rate      Rate of the Person.
     * @param bonusAmt  Bonus amount of the Person.
     */
    public Person(final String firstName, final String lastName, final int age,
                  final BigDecimal rate, final BigDecimal bonusAmt) {
        this.firstName = firstName;
        this.lastName = lastName;
        this.age = age;
        this.rate = rate;
        this.bonusAmt = bonusAmt;
    }

    /**
     * @return Firstname of the Person.
     */
    public String getFirstName() {
        return firstName;
    }

    /**
     * Sets Firstname of the Person.
     *
     * @param firstName Firstname of the Person.
     */
    public void setFirstName(final String firstName) {
        this.firstName = firstName;
    }

    /**
     * @return Lastname of the Person.
     */
    public String getLastName() {
        return lastName;
    }

    /**
     * Sets Lastname of the Person.
     *
     * @param lastName Lastname of the Person.
     */
    public void setLastName(final String lastName) {
        this.lastName = lastName;
    }

    /**
     * @return Age of the Person.
     */
    public int getAge() {
        return age;
    }

    /**
     * Sets the age of the Person.
     *
     * @param age Age of the Person
     */
    public void setAge(final int age) {
        this.age = age;
    }

    /**
     * @return Rate of the Person.
     */
    public BigDecimal getRate() {
        return rate;
    }

    /**
     * Sets a rate of the Person.
     *
     * @param rate Rate of the Person.
     */
    public void setRate(final BigDecimal rate) {
        this.rate = rate;
    }

    /**
     * @return Bonus amount of the Person.
     */
    public BigDecimal getBonusAmt() {
        return bonusAmt;
    }

    /**
     * Sets Bonus amount of the Person.
     *
     * @param bonusAmt Bonus amount of the Person.
     */
    public void setBonusAmt(final BigDecimal bonusAmt) {
        this.bonusAmt = bonusAmt;
    }

    /**
     * @return Is salary of the person counts per hour or not.
     */
    public boolean isPerHour() {
        return perHour;
    }

    /**
     * Sets is salary of the person counts per hour or not.
     *
     * @param perHour Is salary of the person counts per hour or not
     */
    public void setPerHour(boolean perHour) {
        this.perHour = perHour;
    }
}
